package com.cy.uv.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("merchant")
public class Merchant {
    @TableId(value = "id",type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Integer id;
    /**
     * 商家名称
     */
    @TableField(value = "c_name")
    private String cName;
    /**
     * 店铺经营人名称
     */
    @TableField(value = "mc_name")
    private String mcName;
    /**
     * 商家商标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 商家介绍
     */
    @TableField(value = "introduction")
    private String introduction;

    /**
     * 用户评分
     * 所以最后的表现形式是什么？星星？怎么做到动态？还是纯数字？
     */
    @TableField(value = "grade")
    private float grade;
    /**
     * 销量
     */
    @TableField(value = "sale_volume")
    private int saleVolume;

    /**
     * 配送时间
     */
    @TableField(value = "delivery_time")
    private int deliveryTime;

    /**
     * 配送费
     */
    @TableField(value = "delivery_money")
    private float deliveryMoney;

    /**
     * 配送开始时间
     */
    @TableField(value = "delivery_begin")
    private String deliveryStartTime;

    /**
     * 人均消费
     */
    @TableField(value = "average")
    private float averagePrice;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 状态
     */
    @TableField(value = "status")
    private int Status;

    /**
     * 商家类型
     */
    @TableField(value = "m_type")
    private int mType;

}
